#!/usr/bin/perl

use strict;
use warnings;

use uConfigure;

my $conf = new uConfigure;

$conf->add_feature ("gconf", {
		description => "Use gconf configuration backend",
		default     => 1
	});

$conf->parse_options ();

$conf->check_cmd ("gcc");

$conf->check_pkg ("gtk+-2.0");
$conf->check_pkg ("gtkglext-1.0");
$conf->check_pkg ("gthread-2.0");
if ($conf->enabled ("gconf")) {
	$conf->check_pkg ("gconf-2.0");
	$conf->define ("HAVE_GCONF");
}
$conf->check_pkg ("gio-2.0");

$conf->check_lib ("m");
$conf->check_lib ("GL");
$conf->check_lib ("GLU");

if ($conf->ok ()) {
	$conf->write_defines ("config.h");
	$conf->write_makefile_inc ("Makefile.inc");
}

$conf->print_summary ();
